package hd.cls8;

import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class Thread2 implements Runnable {
    @Override
    public void run() {
        for (int i = 1; i <= 20; i++) {
            System.out.println(Thread.currentThread().getName() + "输出了" + i + ",时间是" + new Date());
        }
    }
}
